#include "Stack.h"

void Stack::Init()
{
	_a = nullptr;
	_top = 0;
	_capacity = 0;
}

void Stack::Push(int x)
{
	;
}


Stack::Stack()
{
	_a = (int*)malloc(sizeof(int) * 4);
	_top = 0;
	_capacity = 0;

}

Stack::~Stack()
{
	std::cout << "~Stack()" << std::endl;
	free(_a);
	_top = 0;
	_capacity = 0;
	_a = nullptr;

}

